| Previous | Chapter contents | Chapter top | Section top | Next |
You can use the QTVRSetConstraints function to set the constraints of a movie.
OSErr QTVRSetConstraints (
QTVRInstanceqtvr,
UInt16kind,
floatminValue,
floatmaxValue);
The QTVRSetConstraints function sets the minimum and maximum constraints of the type specified by the kind parameter to the values specified by the minValue and maxValue parameters. Note that when you want to specify a pan angle constraint, the minValue and maxValue parameters should be specified so that a clockwise sweep from minValue to maxValue selects the desired angular expanse. For example, to constrain panning in the 90-degree expanse that spreads out 45 degrees on each side of the pan angle 0 degrees, you should set the minValue parameter to 315 degrees and the maxValue parameter to 45 degrees. Similarly, to constrain panning in the remaining 270-degree expanse, you should set the minValue parameter to 45 degrees and the maxValue parameter to 315 degrees.
The values passed to QTVRSetConstraints are unaffected by the current control settings.
Use QTVRGetConstraints (link) to get a movie's minimum and maximum constraints.
| Previous | Chapter contents | Chapter top | Section top | Next |